#ifndef __UserRegisterSection2_H__
#define __UserRegisterSection2_H__
#include "TLV.hpp"
#include "Packet.hpp"
#include "TcpConnection.hpp"
namespace wd
{
class UserRegisterSection2
{
public:
   UserRegisterSection2(TcpConnectionPtr conn,Packet packet)
   :_packet(packet)
   ,_conn(conn)
    {}
   void process();
private:
   bool parseClientData(const string &data,string &username,string &clientEncrypt);
   string extractSettingFromEncrypt(const string &clientEncrypt);
private:
    Packet _packet;
    TcpConnectionPtr _conn;
};
}






#endif

